<template>
  <svg class="icon">
    <use :href="`#icon-${name}`"></use>
  </svg>
</template>

<script lang="ts" setup name="icon">
defineProps<{ name: string }>()
</script>

<style lang="scss" scoped>
.icon {
  width: 1em;
  height: 1em;
}
</style>
